import { Module } from "vuex";

const setOrg: Module<any, any> = {
  namespaced: true,
  state: {
    checked: undefined,
    personId: "",
  },
  getters: {
    getOrg(state) {
      return state.checked;
    },
    getId(state) {
      return state.personId;
    },
  },
  mutations: {
    changeOrg(state, data) {
      state.checked = data;
    },
    changeId(state, data) {
      state.personId = data;
    },
  },
};
export default setOrg;
